import request from '@/utils/request'

// 查询常用语
export function listPhrases(query) {
  return request({
    url: '/system/phrases/list',
    method: 'get',
    params: query
  })
}
// 新增常用语
export function addPhrases(data) {
  return request({
    url: '/system/phrases',
    method: 'post',
    data: data
  })
}
// 修改常用语
export function updatePhrases(data) {
  return request({
    url: '/system/phrases',
    method: 'put',
    data: data
  })
}

// 删除常用语
export function deletePhrases(ids) {
  return request({
    url: '/system/phrases/'+ids,
    method: 'delete',
  })
}
// 用户删除常用语
export function deleteUserPhrases(ids) {
  return request({
    url: '/system/phrases/del/user/'+ids,
    method: 'delete',
  })
}
// 查询常用语(所有数据)
export function listAllPhrases(query) {
  return request({
    url: '/system/phrases/list/all',
    method: 'get',
    params: query
  })
}
